package com.ipartek.pruebas.bbddaccess;

import java.sql.*;

//Cloudscape concrete DAO Factory implementation

public class TxtDAOFactory extends DAOFactory {
public static final String DRIVER=
 "COM.cloudscape.core.RmiJdbcDriver";
public static final String DBURL=
 "jdbc:cloudscape:rmi://localhost:1099/CoreJ2EEDB";
// method to create Cloudscape connections

public static Connection createConnection() {
 // Use DRIVER and DBURL to create a connection
 // Recommend connection pool implementation/usage
}
public CustomerDAO getCustomerDAO() {
 // CloudscapeCustomerDAO implements CustomerDAO
 return new ODBCCustomerDAO();
}
public AccountDAO getAccountDAO() {
 // CloudscapeAccountDAO implements AccountDAO
 return new ODBCAccountDAO();
}
public OrderDAO getOrderDAO() {
 // CloudscapeOrderDAO implements OrderDAO
 return new CloudscapeOrderDAO();
}
// ...
}